package com.share.dbutils;

import org.apache.commons.dbutils.QueryRunner;

/**
 * Created by leep on 2015-12-25.
 */
public class QueryFactory {
	static QueryRunner queryRunner;

	public static QueryRunner getQueryRunner() {
		if (queryRunner == null) {
			queryRunner = new QueryRunner(DataSourceFactory.getDataSource());
		}
		return queryRunner;
	}
}
